package com.gooapple.notepad.model;

public class HomeInfo {
	private String homeText;
	private String homeTextDetail;
	public String getHomeText() {
		return homeText;
	}
	public void setHomeText(String homeText) {
		this.homeText = homeText;
	}
	public String getHomeTextDetail() {
		return homeTextDetail;
	}
	public void setHomeTextDetail(String homeTextDetail) {
		this.homeTextDetail = homeTextDetail;
	}
	@Override
	public String toString() {
		return "HomeInfo [homeText=" + homeText + ", homeTextDetail="
				+ homeTextDetail + "]";
	}
	public HomeInfo(String homeText, String homeTextDetail) {
		super();
		this.homeText = homeText;
		this.homeTextDetail = homeTextDetail;
	}
	public HomeInfo() {
		super();
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((homeText == null) ? 0 : homeText.hashCode());
		result = prime * result
				+ ((homeTextDetail == null) ? 0 : homeTextDetail.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		HomeInfo other = (HomeInfo) obj;
		if (homeText == null) {
			if (other.homeText != null)
				return false;
		} else if (!homeText.equals(other.homeText))
			return false;
		if (homeTextDetail == null) {
			if (other.homeTextDetail != null)
				return false;
		} else if (!homeTextDetail.equals(other.homeTextDetail))
			return false;
		return true;
	}
	
}
